<template>
  <List
  :linklist = "linklist"
  :tableData = "tableData"
  :btnList = "btnList"
  :titleList="titleList"
  >
  </List> 
</template>

<script>
import List from "../List.vue"
import { datatichengAxios } from "../../http/apis/dataApi/indexTC";
export default {
  components: {
    List,
  },
  created() {
   
     datatichengAxios()
      .then((res) => {
        console.log(res.data);
      })
      .catch((err) => {
        console.log(err);
      });
  },
  data() {
    return {
    // 标题
     linklist:[
       {
         id:'0',
         name:'姓名',
         isRouter:false,
       },
       {
         id:'1',
         name:'新增订单数',
         isRouter:false,
       },
       {
         id:'2',
         name:'已完成订单数',
         isRouter:false,
       },
       {
         id:'3',
         name:'返费',
         isRouter:false,
       },
       {
         id:'4',
         name:'订单已收款',
         isRouter:false,
       },
       {
         id:'5',
         name:'提成百分比',
         isRouter:false,
       },
       {
         id:'6',
         name:'本月提成总金额',
         isRouter:false,
       },
     ],
     //修改删除
     tableData:[
       {
         name:"超级管理员",
         dingdan:"1",
         yiwancheng:"0",
         fanfei:"0",
         yishoukuan:"0",
         ticheng:"5%",
         tichengZ:"0"
       },{
         name:"ANan",
         dingdan:"0",
         yiwancheng:"0",
         fanfei:"0",
         yishoukuan:"0",
         ticheng:"5%",
         tichengZ:"0"
       },{
         name:"DHW",
         dingdan:"0",
         yiwancheng:"0",
         fanfei:"0",
         yishoukuan:"0",
         ticheng:"5%",
         tichengZ:"0"
       },

     ],
     //字段
     btnList:[],
     //数据
     titleList:[
       "name",
       "dingdan",
       "yiwancheng",
       "fanfei",
       "yishoukuan",
       "ticheng",
       "tichengZ"
     ],
    };
  },
};
</script>